# Cohere

The `CohereEmbeddings` class uses the Cohere API to generate embeddings for a given text.

## Usage

```bash npm2yarn
npm install cohere-ai @langchain/cohere
```

import CodeBlock from "@theme/CodeBlock";
import CohereExample from "@examples/models/embeddings/cohere.ts";

<CodeBlock language="typescript">{CohereExample}</CodeBlock>
